<div class="SubMainTitle">
	<b class="FT14">店铺推荐位 </b>
</div>
<div class="Mylist">
<form action="act.php" name="Pform" id="Pform" method="post">
	<table width="100%" border="0" cellspacing="0" cellpadding="5">
		<tr>
			<td width="6%" class="b">选择</td>
			<td width="8%" class="b">商品图片</td>
			<td width="37%" class="b">商品名称</td>
			<td width="12%" class="b">上架状态</td>
            <td width="9%" class="b">下架时间</td>
			<td width="7%" class="b">价格</td>
			<td width="10%" class="b">剩余件数</td>
			<td width="11%" class="b">编辑</td>
	  </tr>
		<?
		foreach($rs as &$v)
		{
			$url = pct::url($v['gYmd'],$v['gid']);
			$img = pct::img($v['gYmd'],$v['gid']);
			$modifyUrl  = pct::modifyUrl($v['gYmd'],$v['gid']);
			$uploadDate = $v['upload']?g::time($v['uploadDate']):'还没上架';
			$cSellType  = $v['cSellType'] == 1?"一口价":"拍卖";
			$dwNum      = $v['dwNumSell']?"{$v['dwNum']}-{$v['dwNumSell']}=<span class=\"orange b\">".($v['dwNum']-$v['dwNumSell'])."</span>":$v['dwNum'];
		?>
		<tr>
			<td><input type="checkbox" name="gid[]" value="<?=$v['gYmd'].$v['gid']?>" ></td>
			<td class="td_img" src="<?=$img[0]?>" href="<?=$url?>"></td>
			<td><span class="orange b">[<?=$cSellType?>]</span><a href="<?=$url?>" target="_blank"><b><?=$v['sTitle']?></b></a></td>
			<td>出售</td>
            <td><?=$uploadDate?></td>
			<td><?=$cSellType?><span class="orange b"><?=$v['dwPrice_bin']?></span></td>
			<td><?=$dwNum?></td>
			<td><a href="<?=$modifyUrl?>" target="_blank">编辑</a>/<a href="<?=$url?>" target="_blank">查看</a></td>
		</tr>
		<?
		}
		?>
	</table>
	<div class="div1">
		<div class="fleft" style="height:20px; margin:1px 0 0 0;">
		 <input type="button" class="submitMini" value="全选" onclick="PctAction.all()">
		 <input type="button" class="submitMini" value="反选" onclick="PctAction.reverse()">
		 <input type="button" class="submitMini" value="删除" onclick="PctAction.del()">
		 <input type="button" class="submitMini" value="取消推荐"onclick="PctAction.good_del()">
		 <input type="button" class="submitMini" value="停止出售，放入仓库" onclick="PctAction.down()">
         <input type="hidden" name="Pact" value="">
         <input type="hidden" name="ourl" value="<?=surl::url()?>">	
		 
		</div>
		
	</div>
</form>
</div>
<script type="text/javascript">
PctAction.set(document.Pform);
//////
$("td.td_img").each(function(){Player.image(this,60);});
$("input.submitMini")
.mouseover(function(){this.className='submitMiniOver'})
.mouseout(function(){this.className='submitMini'});
document.title = $("b.FT14","div.SubMainTitle").html().trim()+"_"+document.title
document.title = $("b.FT14","div.SubMainTitle").html().trim()+"_"+document.title
</script>